package com.jing.weibo.service.ranking;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jing.weibo.mapper.ranking.UserCommentFansMapper;
import com.jing.weibo.pojo.ranking.UserCommentFans;

/**
 * 榜上有名[用户微博的评论的粉丝信息]的Service
 * @author jing.yue
 * @version 2012/10/18 1.0.0
 */
@Component
public class UserCommentFansService {

	@Autowired
	private UserCommentFansMapper userCommentFansMapper;

	/**
	 * 根据用户查询对象
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public UserCommentFans findByUsernameUcf(String username) throws Exception {
		return userCommentFansMapper.findByUsernameUcf(username);
	}

	/**
	 * 保存用户评论粉丝信息
	 * @param userCommentFans
	 * @throws Exception
	 */
	public void saveUserCommentFans(UserCommentFans userCommentFans) throws Exception {
		userCommentFansMapper.saveUserCommentFans(userCommentFans);
	}

	/**
	 * 根据用户名修改信息
	 * @param userCommentFans
	 * @throws Exception
	 */
	public void updateUserCommentFans(UserCommentFans userCommentFans) throws Exception {
		userCommentFansMapper.updateUserCommentFans(userCommentFans);
	}

}